//Grade of Steel
#include<stdio.h>
#include<conio.h>
void main()
{
	float h,cp,ts;
	clrscr();

	printf("\n\n\n\t\tEnter the Hardness of steel:");
	scanf("%f",&h);


	printf("\n\n\n\t\tEnter the Carbon percentage:");
	scanf("%f",&cp);


	printf("\n\n\n\t\tEnter the Tensile strength:");
	scanf("%f",&ts);


	if((h > 50) && (cp < 0.7) && (ts > 5600))
		printf("\n\n\n\t\tThe Grade of steel is 10");


	if((h > 50) && (cp > 0.7))
		printf("\n\n\n\t\tThe Grade of steel is 9");


	if((cp < 0.7) && (ts > 5600))
		printf("\n\n\n\t\tThe Grade of steel is 8");


	if((cp > 50) && (ts < 5600))
		printf("\n\n\n\t\tThe Grade of steel is 7");


	if((h > 50) || (cp < 0.7) || (ts > 5600))
		printf("\n\n\n\t\tThe Grade of steel is 6 ");


   if((h > 50) != (cp < 0.7) != (ts > 5600))
		printf("\n\n\n\t\tThe Grade of steel is 5 ");


	getch();
}